ticketCommentPromptProto = {
    initComponent : function()
    {
        ticketCommentPrompt.superclass.initComponent.call(this);
        this.initHandlers();
    }
    , initHandlers : function()
    {
        this.commentForm.commentButton.setHandler(this.doCommenting, this);
    }
    , doCommenting : function()
    {
        this.commentForm.getForm().submit({
           success : this.onSuccess
           ,failure : globals.formSubmitFailed
           ,scope : this
        });
    }
    , onSuccess : function(form, action)
    {
        sweatShop.log(action.result.message, 1);
        this.ticket.addCommentToTicket(action.result.comment);
        this.ticket.el.highlight();
        this.close();
    }
};
ticketCommentPrompt = Ext.extend(ticketCommentPromptUi, ticketCommentPromptProto);